{% extends 'base.html' %}
{% block title %}
	{{ problem['title'] }}
{% endblock %}
{% block content %}
	<h1>{{ problem['title'] }}</h1>
	<div>
		<p>时间限制：{{ problem['time_limit'] }}</p>
		<p>内存限制：{{ problem['memory_limit'] }}</p>
	</div>
	{% if 'admin' in session %}
		<a class="simple_links" href={{ url_for('problem_delete',problem_id=problem['problem_id']) }}>删除问题</a>
		<a class="simple_links" href={{ url_for('problem_update',problem_id=problem['problem_id']) }}>修改问题</a>
	{% endif %}
	<h2>题目描述</h2>
	{{ problem['content'] | safe }}
	<h2>提交代码：</h2>
	<form method="post">
		<p>选择语言{{ form.language }}</p>
		{{ form.code }}<br>
		{{ form.csrf_token }}
		{{ form.submit }}
	</form>
{% endblock %}